package com.chinasofti.project.common;

import java.util.Properties;

import com.google.common.base.Preconditions;

public class PropConfigUtil {

	public static String getAndCheck(Properties prop,String key){
		String value = prop.getProperty(key);
		Preconditions.checkNotNull(value, "获取到配置项["+key+"]为null");
		return value; 
	}
	
	
}
